package com.c.ctgproject.entity

/**
 * 作者:LiBW
 * 创建日期: 2020/9/7
 * 描述: 物料销售列表回调
 */
class MaterialSellEntity {
    /**
     * total : 8
     * list : [{"materialId":16,"materialName":"物料1-1-1","materialInventoryWeight":null},{"materialId":17,"materialName":"物料1-1-2","materialInventoryWeight":null},{"materialId":18,"materialName":"物料1-1-3","materialInventoryWeight":null},{"materialId":19,"materialName":"物料1-2-1","materialInventoryWeight":null},{"materialId":22,"materialName":"物料1-2-2","materialInventoryWeight":null},{"materialId":23,"materialName":"物料1-2-3","materialInventoryWeight":null},{"materialId":25,"materialName":"物料3-1-1","materialInventoryWeight":null},{"materialId":28,"materialName":"发动机三级","materialInventoryWeight":null}]
     * pageNum : 1
     * pageSize : 20
     * size : 8
     * startRow : 1
     * endRow : 8
     * pages : 1
     * prePage : 0
     * nextPage : 0
     * isFirstPage : true
     * isLastPage : true
     * hasPreviousPage : false
     * hasNextPage : false
     * navigatePages : 8
     * navigatepageNums : [1]
     * navigateFirstPage : 1
     * navigateLastPage : 1
     */
    var total = 0
    var pageNum = 0
    var pageSize = 0
    var size = 0
    var startRow = 0
    var endRow = 0
    var pages = 0
    var prePage = 0
    var nextPage = 0
    var isIsFirstPage = false
        private set
    var isIsLastPage = false
        private set
    var isHasPreviousPage = false
    var isHasNextPage = false
    var navigatePages = 0
    var navigateFirstPage = 0
    var navigateLastPage = 0
    var list: List<ListBean>? = null
    var navigatepageNums: List<Int>? = null

    fun setIsFirstPage(isFirstPage: Boolean) {
        isIsFirstPage = isFirstPage
    }

    fun setIsLastPage(isLastPage: Boolean) {
        isIsLastPage = isLastPage
    }

    class ListBean {
        /**
         * materialId : 16
         * materialName : 物料1-1-1
         * materialInventoryWeight : null
         */
        var materialId = -1
        var materialName: String? = ""
        var materialInventoryWeight: Any? = null
        var materialInventoryNumber: Any? = null

    }
}